package com.example.royalchef.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * author: Administrator
 * created on: 2017/7/5 18:02
 * description:
 */

public class SearchInfo implements Parcelable {

    private String nickname;
    private String title;
    private String cover;
    private String content;
    private String createdat;

    public SearchInfo() {
    }

    public SearchInfo(String nickname, String title, String cover, String content, String createdat) {
        this.nickname = nickname;
        this.title = title;
        this.cover = cover;
        this.content = content;
        this.createdat = createdat;
    }

    protected SearchInfo(Parcel in) {
        nickname = in.readString();
        title = in.readString();
        cover = in.readString();
        content = in.readString();
        createdat = in.readString();
    }

    public static final Creator<SearchInfo> CREATOR = new Creator<SearchInfo>() {
        @Override
        public SearchInfo createFromParcel(Parcel in) {
            return new SearchInfo(in);
        }

        @Override
        public SearchInfo[] newArray(int size) {
            return new SearchInfo[size];
        }
    };

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreatedat() {
        return createdat;
    }

    public void setCreatedat(String createdat) {
        this.createdat = createdat;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(nickname);
        dest.writeString(title);
        dest.writeString(cover);
        dest.writeString(content);
        dest.writeString(createdat);
    }
}
